package com.egao.common.module.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 网页管理
 * @author pyx
 */
@ApiModel(description = "网页管理")
@TableName("sys_layout")
@Data
public class Layout implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    @NotBlank(message = "标题不为空")
    private String title;

    @ApiModelProperty("logo图地址")
    private String logoUrl;

    @ApiModelProperty("内容板块1")
    private String contentOne;

    @ApiModelProperty("内容板块2")
    private String contentTwo;

    @ApiModelProperty("内容板块3")
    private String contentThree;

    @ApiModelProperty("内容板块4")
    private String contentFour;

    @ApiModelProperty("内容板块5")
    private String contentFive;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;
}
